<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>"> 
<meta charset="UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">  
<title>后台登录页</title>
<link rel="stylesheet" type="text/css" href="css/login.css" ></link>

</head>
<body>
<div id="div_center">
	<form action="LoginServlet" method="post">
	<div id="div_inputbox">
		<input type="text" id="adminName" name="adminName"  />
		<input type="password" id="password" name="password" />
	</div>
	<input id="btn_img" type="image" src="images/bg_login_btn.jpg" />
 </form>
</div>
<script type="text/javascript">
<!-- 提示状态码  -->
var msgs="${msg}";
if("0" ==msgs){
	alert("用户名或密码错误");
}else if ("2" ==msgs) {
	alert("您的状态已被管理员锁定，不能登录");
}else if ("1"==msgs) {
	alert("请登录！");
}
<!--  退出框架集登录-->
if (window != top) {
	top.location.href = location.href; 
}
    
 
</script>
</body>
</html>